"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var api_1 = require("../../../config/api");
var home_config_service_1 = require("../../lib/service/home/home-config.service");
var IndexFooterComponent = /** @class */ (function () {
    function IndexFooterComponent(homeConfigService) {
        this.homeConfigService = homeConfigService;
        this.photo_nav_show = false;
        this.aliyunOssOutputUrl = api_1.AliyunOssOutputUrl;
    }
    IndexFooterComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.homeConfigService.getHomeConfig().subscribe(function (res) {
            if (res.code = 2000) {
                _this.homeConfig = res.data;
            }
            else {
                alert(res.code + ',' + res.message);
            }
        });
    };
    IndexFooterComponent = __decorate([
        core_1.Component({
            selector: 'app-index-footer',
            templateUrl: './index-footer.component.html',
            styleUrls: ['./index-footer.component.scss'],
            providers: [
                home_config_service_1.HomeConfigService
            ]
        })
    ], IndexFooterComponent);
    return IndexFooterComponent;
}());
exports.IndexFooterComponent = IndexFooterComponent;
